var chatRoomConfig = {}
var chatRoomService = {
    init: function() {
        return http.request("/webim/chatroom/rest/init");
    },
    sendMessage: function(message, lastMessageId) {
        return http.request("/webim/chatroom/rest/sendMessage", { message, lastMessageId });
    },
    getNewestMessages: function(lastMessageId) {
        return http.request("/webim/chatroom/rest/getNewestMessages", { lastMessageId });
    },
    getNewestMessagesAsync: function(lastMessageId) {
        return http.request("/webim/chatroom/rest/async/getNewestMessages", { lastMessageId });
    }
}